package com.hawk_an;

import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Polygon;

public class GameGraphics {
	
	public GameGraphics(){
		
	}
	public void paint(Graphics2D g,int width, int height){
		for(int t = 1; t < 7; t ++){
			Polygon circle = makecircle();
			circle.translate(0, (height/7)*t+10);
			for(int i=1; i < 8; i++){
				circle.translate(width/8, 0);
				g.setColor(Color.black);
				g.fillPolygon(circle);
			}
		}
	}
	private Polygon makecircle(){
		Polygon polygon = new Polygon();
		for (int i = 0; i < 20; i++)
			polygon.addPoint((int) (30 * Math.cos(i * 2 * Math.PI / 20)),
					(int)(30 * Math.sin(i * 2 * Math.PI / 20)));
		return polygon;
	}
}
